import { Component, createApp } from "vue";
import router from "@/router/index";
import pinia from "@/stores/index";
import naive from 'naive-ui';
import i18n from '@/lang' //这里
import '@/utils/menu';

export function mountedAppRoot(component:Component,id:string){
   const app  = createApp(component);
   app.use(router);
   app.use(naive);
   app.use(pinia);
   app.use(i18n);
   app.mount(id);
}